//
//  ViewController.m
//  test
//
//  Created by Vincent on 2017/3/25.
//  Copyright © 2017年 Vincent. All rights reserved.
//

#import "ViewController.h"
#import "UIGestureRecognizer+zll.h"


@interface ViewController ()



@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    //利用运行时特性创建UIGestureRecognizer和添加代码块回调
    UITapGestureRecognizer *gsr = [UITapGestureRecognizer gestureRecognizerWithAction:^(UIGestureRecognizer *gesture) {
        
        NSLog(@"%@",gesture);
        [self.view removeGestureRecognizer:gesture];
        
    }];
    [self.view addGestureRecognizer:gsr];
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
